package cn.tedu.basic;

public class Test4_Exchange {
    public static void main(String[] args) {
        int a = 1;
        int b = 2;
        System.out.println("交换前：a="+a+",b="+b);

        int c = a;
        a = b;
        b = c;
        System.out.println("交换后：a="+a+",b="+b);
    }
}
